<?php $sN = "Question" ?>
<script type="text/javascript">
    $(document).ready(function(){
        
    });
</script>
<div id="content">
    <div id="page-heading">
        <h1><?php echo $survey['Survey']['title'] ?></h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
            </th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
            </th>
	</tr>
	<tr>
            <td id="tbl-border-left"></td>
            <td>
                <div id="content-table-inner">
                    <div id="table-content">
                        <?php 
                            echo $this->Session->flash();
                        ?>
                        <form action="" method="post">
                            <?php 
                            foreach($values as $value): 
                                echo $this->element('front_question',array('question'=>$value,'survey_id'=>$survey_id));
                            endforeach;
                            ?>
                            <div style="clear: both">
                                <input type="submit" value="Submit" class="submit-button" />
                                <a href="<?php echo $this->Html->url(array('controller' => "surveys", 'action' => 'index')) ?>" class="cancel-button">Cancel</a>
                            </div>
                        </form>
                                        
                    </div>
                <div class="clear"></div>
                </div>
            </td>
            <td id="tbl-border-right"></td>
	</tr>
	<tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
